<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class DailyRecordModel extends Model
{
    protected $table = 'daily_record';
    protected $guarded = [];
    public $timestamps = true;

//    protected $fillable = ['user_id', 'code', 'record_type', 'user_review_id', 'begin_time', 'end_time', 'remark', 'apply_reason'];

    public function user() {
        return $this->belongsTo(UsersModel::class, 'user_id', 'id');
    }

    public function userReview() {
        return $this->belongsTo(UsersModel::class, 'user_review_id', 'id');
    }
}